package com.cd.questionBank.jpa.repo;

import com.cd.questionBank.jpa.domain.QuestionBank;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Repository("qb")
@Transactional
public interface QuestionBankRepo extends CrudRepository<QuestionBank,Long> {
//    a lot of test example,some test cases
//    @Query("select user FROM LqqUser user WHERE user.username = ?1")
//    LqqUser selectLqqUserByUserName(String username);
//
//    @Query("update LqqUser lu SET lu.nickName = ?1 where lu.id =?2")
//    @Modifying
//    int updateLqqUserByUserName(String name,Long id);



}
